﻿using System;
using System.Collections;

namespace Ucto.ToExcelConvertor
{
	/// <summary>
	/// Data reader reads given stext input data (e.g. stext.txt).
	/// Reads header and yeilds values from the data source based on the header spec as it reads the stream.
	/// </summary>
	public interface IDataReader : IDisposable
	{
		/// <summary>
		/// From opened stream reads the next value. Then returns the value.
		/// Lenght of the readed value is specified in the header.
		/// </summary>
		string GetNextValue();

		/// <summary>
		/// Reads and returns header information from the input data.
		/// </summary>
		DataHeader GetHeader();
	}
}
